#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void singlenumber(int* p , int sz)
{
	
	for (int i = 0; i < sz-1; i++)
	{
		int flag = 0;
		for (int j = i+1; j < sz ; j++)
		{
			if (p[i] == p[j])
			{
				flag = 1;
			}
		}
		if (flag==0)
		{
			printf("%d ", p[i]);
			break;
		}
	}
}
int main()
{
	int arr[] = { 0,1,2,3,4,0,1,2,3 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	singlenumber(arr,sz);
	return 0;
}